package org.hs.im.forensicj.view.imageviewer.action;

import org.hs.im.forensicj.Resources;
import org.hs.im.forensicj.view.ImageViewer;

import bibliothek.gui.dock.common.action.CButton;

public class RotateLeftButton extends CButton {

	private ImageViewer viewer;

	public RotateLeftButton(ImageViewer viewer) {
		this.viewer = viewer;
		setText( "Rotate Left" );
		setIcon( Resources.getIcon( "imageviewer.rotateleft" ) );
		//setAccelerator( KeyStroke.getKeyStroke( KeyEvent.VK_ADD, InputEvent.CTRL_MASK ) );
	}

	@Override
	protected void action() {
		viewer.rotateLeft();
	}

}
